package com.fz.song.service;

import com.fz.song.mapper.SysUserMapper;
import com.fz.song.pojo.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;


    public SysUser getUser(Integer id) {
        SysUser sysUser = sysUserMapper.selectByPrimaryKey(id);
        return sysUser;
    }


    public SysUser InsertUser(SysUser user) {
        int i = sysUserMapper.insertSelective(user);
        return user;
    }

}
